package com.vip.mm;

import com.vip.file.constant.UrlConstant;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping(UrlConstant.API + "/mx")
@RequiredArgsConstructor
public class MxController {

    @GetMapping(value = "/mayAllYourWishesComeTrue")
    public List<String> mayAllYourWishesComeTrue(@RequestParam("size") int size){
        return MxUtils.getMx(size);
    }

}

